package com.ruoyi.consume.mapper;

import java.util.List;

import com.ruoyi.consume.domain.FertilizerApplyTemporaryCon;

/**
 * 化肥临时领用Mapper接口
 *
 * @author ruoyi
 * @date 2021-07-27
 */
public interface FertilizerApplyTemporaryConMapper
{
    /**
     * 查询化肥临时领用
     *
     * @param fertilizerApplyTemporaryId 化肥临时领用ID
     * @return 化肥临时领用
     */
    public FertilizerApplyTemporaryCon selectFertilizerApplyTemporaryById(Long fertilizerApplyTemporaryId);

    /**
     * 查询化肥临时领用列表
     *
     * @param fertilizerApplyTemporaryCon 化肥临时领用
     * @return 化肥临时领用集合
     */
    public List<FertilizerApplyTemporaryCon> selectFertilizerApplyTemporaryList(FertilizerApplyTemporaryCon fertilizerApplyTemporaryCon);

    /**
     * 新增化肥临时领用
     *
     * @param fertilizerApplyTemporaryCon 化肥临时领用
     * @return 结果
     */
    public int insertFertilizerApplyTemporary(FertilizerApplyTemporaryCon fertilizerApplyTemporaryCon);

    /**
     * 修改化肥临时领用
     *
     * @param fertilizerApplyTemporaryCon 化肥临时领用
     * @return 结果
     */
    public int updateFertilizerApplyTemporary(FertilizerApplyTemporaryCon fertilizerApplyTemporaryCon);

    /**
     * 删除化肥临时领用
     *
     * @param fertilizerApplyTemporaryId 化肥临时领用ID
     * @return 结果
     */
    public int deleteFertilizerApplyTemporaryById(Long fertilizerApplyTemporaryId);

    /**
     * 批量删除化肥临时领用
     *
     * @param fertilizerApplyTemporaryIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteFertilizerApplyTemporaryByIds(Long[] fertilizerApplyTemporaryIds);

    /**
     * 更新库存量表
     *
     * @param fertilizerApplyTemporaryCon 化肥临时领用
     * @return 结果
     */
    public int updateAmount(FertilizerApplyTemporaryCon fertilizerApplyTemporaryCon);

    /**
     * 更新领用状态
     *
     * @param fertilizerApplyTemporaryId 化肥临时领用ID
     * @return 结果
     */
    public int updateConsumeStatus(Long fertilizerApplyTemporaryId);

    /**
     * 退回操作
     *
     * @param fertilizerApplyTemporaryId 化肥临时领用ID
     * @return 结果
     */
    public int updateApprovalStatus(Long fertilizerApplyTemporaryId);
}
